        
<div class="panel clearfix">

<div class="leftside">
	<div class="billaddress"><!-- Always show billing address -->
		<b>[<tag type="valueof" resourcekey="General.BillTo" />]</b>
		<div class="address">
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/company' />]</div>
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/unit' />]</div>
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/street' />]</div>
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/city' />]</div>
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/region' />]</div>
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/postalcode' />]</div>
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/dropdownlist/country/@selectedtext' />]</div>
		</div>
		<div class="address person">
			<div><b>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/firstname' />] [<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/lastname' />]</b></div>
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/telephone' />]</div>
			<div><a href="mailto:[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/email' />]">[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/email' />]</a></div>
		</div>
		<div class="address">
		<div><b>[<tag type="valueof" resourcekey="OrderAdmin.PaymentMethod" />]</b></div>
		<div>
    [<tag type="if" xpath="genxml/paymentproviderkey" testvalue="manualpayment" display="{ON}" displayelse="{OFF}" />][<tag type="valueof" resourcekey="General.manualpayment" />][<tag type="endtestof" />]
    [<tag type="if" xpath="genxml/paymentproviderkey" testvalue="manualpayment" display="{OFF}" displayelse="{ON}" />][<tag type="valueof" resourcekey="General.creditcardpayment" />][<tag type="endtestof" />]
    </div>
		</div>
		<div class="address">
		<div><b>[<tag type="valueof" resourcekey="OrderAdmin.PaymentStatus" />]</b></div>
		<div>[<tag id="orderstatus" cssclass="form-control" enabled="false" type="orderstatus" />]</div>
		</div>
					[<tag type="if" xpath="genxml/extrainfo/genxml/textbox/promocode" testvalue="" display="{OFF}" />]
		<div class="address">
					<div><b>[<tag type="valueof" resourcekey="General.PromotionalCode" />]</b></div>					
					<div>[<tag type='valueof' xpath='genxml/extrainfo/genxml/textbox/promocode' />]</div>
		</div>
					[<tag type="endtestof" />]
					[<tag type="if" xpath="genxml/extrainfo/genxml/textbox/taxnumber" testvalue="" display="{OFF}" />]
		<div class="address">
					<div><b>[<tag type="valueof" resourcekey="General.TaxNumber" />]</b></div>					
					<div>[<tag type='valueof' xpath='genxml/extrainfo/genxml/textbox/taxnumber' />]</div>
		</div>
					[<tag type="endtestof" />]
	</div>
	
	<div class="shipaddress">
    [<tag type="if" xpath="genxml/pickuppointaddr" testvalue="" display="{ON}" />]<!-- Hide shipping address if shipping provider generates a pickup location -->

	[<tag type="if" xpath="genxml/extrainfo/genxml/radiobuttonlist/rblshippingoptions" testvalue="2" display="{ON}" />]<!-- If shipping address is supplied show it -->
		<b>[<tag type="valueof" resourcekey="General.ShipTo" />]</b>
		<div class="address">
        <div>[<tag type='valueof' xpath='genxml/shipaddress/genxml/textbox/company' />]</div>
        <div>[<tag type='valueof' xpath='genxml/shipaddress/genxml/textbox/unit' />]</div>
        <div>[<tag type='valueof' xpath='genxml/shipaddress/genxml/textbox/street' />]</div>
        <div>[<tag type='valueof' xpath='genxml/shipaddress/genxml/textbox/city' />]</div>
        <div>[<tag type='valueof' xpath='genxml/shipaddress/genxml/textbox/region' />]</div>
        <div>[<tag type='valueof' xpath='genxml/shipaddress/genxml/textbox/postalcode' />]</div>
        <div>[<tag type='valueof' xpath='genxml/shipaddress/genxml/dropdownlist/country/@selectedtext' />]</div>
		</div>
		<div class="address person">
			<div><b>[<tag type='valueof' xpath='genxml/shipaddress/genxml/textbox/firstname' />] [<tag type='valueof' xpath='genxml/shipaddress/genxml/textbox/lastname' />]</b></div>
        <div>[<tag type='valueof' xpath='genxml/shipaddress/genxml/textbox/telephone' />]</div>
			<div><a href="mailto:[<tag type='valueof' xpath='genxml/shipaddress/genxml/textbox/email' />]">[<tag type='valueof' xpath='genxml/shipaddress/genxml/textbox/email' />]</a></div>
		</div>
	[<tag type="endif" />]

    [<tag type="if" xpath="genxml/extrainfo/genxml/radiobuttonlist/rblshippingoptions" testvalue="1" display="{ON}" />]<!-- If shipping address not supplied, show billing address -->
		<b>[<tag type="valueof" resourcekey="General.ShipTo" />]</b>
		<div class="address">
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/company' />]</div>
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/unit' />]</div>
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/street' />]</div>
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/city' />]</div>
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/region' />]</div>
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/postalcode' />]</div>
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/dropdownlist/country/@selectedtext' />]</div>
		</div>
		<div class="address person">
			<div><b>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/firstname' />] [<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/lastname' />]</b></div>
        <div>[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/telephone' />]</div>
			<div><a href="mailto:[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/email' />]">[<tag type='valueof' xpath='genxml/billaddress/genxml/textbox/email' />]</a></div>
		</div>
    [<tag type="endif" />]

    [<tag type="endif" />]
    
	    <div class="address">
		<div><b>[<tag type="valueof" resourcekey="Notification.ShippingMethod" />]</b></div><!-- Show shipping method -->
		<div>[<tag type="valueof" xpath="genxml/extrainfo/genxml/radiobuttonlist/shippingprovider/@selectedtext" />]</div>
	    </div>

	[<tag type="if" xpath="genxml/pickuppointaddr" testvalue="" display="{OFF}" />]<!-- Show pickup location if present -->
		<div class="address">
		<div><b>[<tag type="valueof" resourcekey="General.PickupReference" />]</b></div>
		<div>[<tag type="valueof" xpath="genxml/pickuppointref" />]</div>
		<div><b>[<tag type="valueof" resourcekey="General.PickupAddress" />]</b></div>
		<div>[<tag type="valueof" xpath="genxml/pickuppointaddr" />]</div>
		</div>
	[<tag type="endif" />]
    
		<div class="address">
		[<tag type="if" xpath="genxml/textbox/shippingdate" testvalue="" display="{OFF}" />]<!-- Show shipping date if present -->
		<div><b>[<tag type="valueof" xpath="genxml/textbox/shippingdate" datatype='date' format='dd MMM yyyy' />]</b></div>
		<div>[<tag type="valueof" xpath="genxml/textbox/shippingdate" />]</div>
		[<tag type="endif" />]
		</div>
		<div class="address">
		[<tag type="if" xpath="genxml/textbox/trackingcode" testvalue="" display="{OFF}" />]<!-- Show tracking code if present -->
		<div><b>[<tag type="valueof" resourcekey="Notification.TrackingNumber" />]</b></div>
		<div>[<tag type="valueof" xpath="genxml/textbox/trackingcode" />]</div>
		[<tag type="endif" />]
		</div>

    [<tag type="if" xpath="genxml/extrainfo/genxml/radiobuttonlist/rblshippingoptions" testvalue="3" display="{ON}" />]
	    <div class="address">
		<div><b>[<tag type="valueof" resourcekey="Notification.ShippingOption" />]</b></div><!-- Show store pickup options if selected -->
		<div>[<tag type="valueof" xpath="genxml/extrainfo/genxml/radiobuttonlist/rblshippingoptions/@selectedtext" />]</div>
	    [<tag type="valueof" resourcekey="Notification.pickupmessage" />]
	    </div>
    [<tag type="endif" />]

	</div>
</div>

<div class="rightside">
	<div class="text-right storeaddress">
		<div class="address">
			<div><b>[Settings:storecompany]</b></div>
			[<tag type="if" function="settings" key="storeattention" testvalue="" display="{OFF}" />]
			<div>[<tag type='valueof' resourcekey='General.Att' />]: [Settings:storeattention]</div>
			[<tag type="endtestof" />]
			<div>[Settings:storeaddressline1]</div>
			<div>[Settings:storeaddressline2]</div>
			<div>[Settings:storecity], [Settings:storeregion] [Settings:storepostcode]</div>
			<div>[Settings:storecountrytext]</div>
			[<tag type="if" function="settings" key="storetaxnumber" testvalue="" display="{OFF}" />]
			<div>[<tag type='valueof' resourcekey='General.Taxno' />]: [Settings:storetaxnumber]</div>
			[<tag type="endtestof" />]
			[<tag type="if" function="settings" key="salesemail" testvalue="" display="{OFF}" />]
			<div>[<tag type='valueof' resourcekey='General.Sales' />]: [Settings:salesemail]</div>
			[<tag type="endtestof" />]
			[<tag type="if" function="settings" key="supportemail" testvalue="" display="{OFF}" />]
			<div>[<tag type='valueof' resourcekey='General.Support' />]: [Settings:supportemail]</div>
			[<tag type="endtestof" />]
			[<tag type="if" function="settings" key="websiteurl" testvalue="" display="{OFF}" />]
			<div>[<tag type='valueof' resourcekey='General.Web' />]: [<tag type="dnn:websiteurl" />]</div>
			[<tag type="endtestof" />]
			[<tag type="if" function="settings" key="storephone" testvalue="" display="{OFF}" />]
			<div>[<tag type='valueof' resourcekey='General.Ph' />]: [Settings:storephone]</div>
			[<tag type="endtestof" />]
		</div>
	    <h3 class="invoice-header">[<tag type='valueof' resourcekey='General.OrderNumber' />] [<tag type="valueof" xpath="genxml/ordernumber" />]</h3>
		<p>[<tag type='valueof' resourcekey='General.OrderDate' />]: [<tag type="valueof" xpath="genxml/createddate" datatype="date" />]</p>
	</div>
</div>
